package com.chenyu.client;

import com.chenyu.fallback.UserClientsFallbackFactory;
import com.chenyu.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 晴
 * @version 1.0
 * @description:
 * @date 2024/7/20 17:54
 */
@FeignClient(name = "gift-user",fallbackFactory = UserClientsFallbackFactory.class)
@RequestMapping("/user")
public interface UserClients {

    @GetMapping("/ph/{phone}")
    AjaxResult getByPhone(@PathVariable String phone);

}
